package jolly.clipboard.domain;

import java.util.UUID;

/**
 * Created by IntelliJ IDEA.
 * User: david
 * Date: 12/18/11
 * Time: 3:05 PM
 * To change this template use File | Settings | File Templates.
 */
public class ModificationTicket {
    
    private String uuid;

    public ModificationTicket() {
        uuid = UUID.randomUUID().toString();
    }

    public String getUuid() {
        return uuid;
    }
    
    @Override
    public boolean equals(Object o) {
        if (!(o instanceof ModificationTicket)) {
            return false;
        }

        return uuid.equals(((ModificationTicket) o).getUuid());
    }
}
